package com.xoa.service.inv;

import com.xoa.model.inv.OmShipment;
import com.xoa.util.ToJson;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface OmShipmentService {

    //添加数据
    public int insertSales(OmShipment omShipment, Map<String,Object> maps);
    //查询所有数据
    public List<OmShipment> selectAll(Map<String, Object> map);

    //查询回显数据
    public OmShipment selectByPrimaryKey(Integer shipmentId);

    //根据ID删除数据
    public int deleteByPrimaryKey(Integer shipmentId);

    //根据id更新数据
    public int updateByPrimaryKeySelective(OmShipment omShipment, String productType, String enterName, String enterSpecs, String enterCode);

    //导出数据
    public ToJson<OmShipment> ExportOmShipment(HttpServletRequest request, HttpServletResponse response, OmShipment omShipment, String beginDate, String isExport);
    //查询所有出货人
    public ToJson<OmShipment> selectUsers();
    //查询所有欠款用户
    public List<OmShipment> selectCustomerId(String customerName);
    //月销售统计
    ToJson<OmShipment> shipCount(HttpServletRequest request,String year,String warehouseId);
    //日销售统计
    ToJson<OmShipment> shipDayCount(HttpServletRequest request,String year,String warehouseId,String month);
    //员工销售统计
    ToJson<OmShipment> shipEmployeeCount(HttpServletRequest request,String year,String warehouseId,String month,String flag);

    ToJson<OmShipment> shipCustomerCount(HttpServletRequest request,String year,String warehouseId,String month,String flag);
    //其他收支
    ToJson<OmShipment> shipOtherCount(HttpServletRequest request,String year,String warehouseId,String month,String flag,String day);



}
